package cn.xgj.sfzy.controller;

import cn.xgj.sfzy.entity.CourseReply;
import cn.xgj.sfzy.entity.MyAssessment;
import cn.xgj.sfzy.service.CourseReplyService;
import cn.xgj.sfzy.service.MyAssessmentService;
import cn.xgj.sfzy.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName MyAssessmentController
 * @Description TODO
 * @Author furuyue
 * @Date 2024年10月28日 19:20
 * @Version 1.0
 */

@RestController
@RequestMapping("/myassessment")
public class MyAssessmentController {

    @Autowired
    private MyAssessmentService myAssessmentService;

    @RequestMapping("/findByUserId")
    public Result findByUserId(Long userId){
        List<MyAssessment> list = myAssessmentService.findByUSerId(userId);
        return Result.success(list);
    }

}
